<?php

class email {

	var $zam;
	
	#==================================
	# Send email
	#==================================
	function send($to, $subject, $body)
	{
		# Email boundary
		$boundary = md5(time());
		
		# Msg headers
		$headers = "From: Zameleon Staff Team <admin@zameleon.com>\r\n";
		/*$headers .= "Reply-To: Zameleon Staff Team <admin@zameleon.com>\r\n";
		$headers .= "Return-To: Zameleon Staff Team <admin@zameleon.com>\r\n";
		$headers .= "Message-ID: <".time()."-admin@zameleon.com>\r\n";
		$headers .= "X-Mailer: PHP v".phpversion()."\r\n";
		$headers .= "Mime-Version: 1.0\r\n\r\n";
		$headers .= "Content-Type: multipart/mixed; boundary=\" . $boundary . \"\r\n\r\n";*/
		
		/*$message .= "--" . $boundary . "\r\n";
		$message = "Content-Type: mutlipart/alternative\r\n\r\n";*/
		
		# Text version
		/*$message .= "--" . $boundary . "\r\n\r\n";
		$message .= "Content-Type: text/plain; charset=utf-8\r\n";
		$message .= "Content-Transfer-Encoding: 8bit\r\n\r\n";*/
		$message .= strip_tags( str_replace( '<br />', '', $body ) ) . "\r\n\r\n";
		
		# Html version
		/*$message .= "--" . $boundary . "\r\n\r\n";
		$message .= "Content-Type: text/html; charset=utf-8\r\n";
		$message .= "Content-Transfer-Encoding: 8bit\r\n\r\n";
		$message .= $body . "\r\n\r\n";*/
		
		/*$message .= "--" . $boundary . "--\r\n\r\n";*/
		
		# Send message
		#ini_set('sendmail_from', 'admin@zameleon.com');
		mail($to, $subject, $message, $headers);
		#ini_restore('sendmail_from');
	}
		
}

?>